import request from "@/router/axios";
import { baseUrl } from "@/config/env";

// 添加日常行为规范
export function addBehavior(data) {
  return request({
    url: baseUrl + "/pc/behavior",
    method: "post",
    data
  });
}

//查询日常行为规范
export function getBehavior(data) {
  return request({
    url: baseUrl + "/pc/behavior",
    method: "get",
    params: data
  });
}

//删除日常行为规范
export function deleteBehavior(data) {
  return request({
    url: baseUrl + "/pc/behavior",
    method: "delete",
    data
  });
}

//更新日常行为规范
export function updateBehavior(data) {
  return request({
    url: baseUrl + "/pc/behavior",
    method: "put",
    data
  });
}

//导入日常行为规范
export function importBehavior(data) {
  return request({
    url: baseUrl + "/pc/behavior/upload",
    method: "post",
    data
  });
}
